Skip to main content

Backup and Restore

Set Up Automatic Backups

1) Log in to the MongoDB console. fg-dc-mongo(sharded)-3.2-1

2) According to the instance type, in the left navigation bar, click Replica Set Instance List. fg-dc-mongo(sharded)-3.2-2

3) On the replica set instance list page, click the target instance ID or click More in the Action column of the row where the target instance is located, and select Manage. fg-dc-mongo(sharded)-3.2-3

4) Click Backup and Restore in the left navigation bar. fg-dc-mongo(sharded)-3.2-4

5) Click Backup Settings in the upper left corner of the page, and complete the parameter configuration according to the page prompts. fg-dc-mongo(sharded)-3.2-5

6) Click OK.

Back Up the Instance Manually

1) Log in to the MongoDB console. fg-dc-mongo(sharded)-3.2-6

2) According to the instance type, in the left navigation bar, click Replica Set Instance List. fg-dc-mongo(sharded)-3.2-7

3) On the replica set instance list page, click the target instance ID or click More in the Action column of the row where the target instance is located, and select Manage. fg-dc-mongo(sharded)-3.2-8

4) Click Backup Instance on the right side of the page. fg-dc-mongo(sharded)-3.2-9

5) Select the backup method in the pop-up dialog box and click OK. fg-dc-mongo(sharded)-3.2-10

Download Backup File

1) Log in to the MongoDB console. fg-dc-mongo(sharded)-3.2-11

2) According to the instance type, in the left navigation bar, click Replica Set Instance List. fg-dc-mongo(sharded)-3.2-12

3) On the replica set instance list page, click the target instance ID or click More in the Action column of the row where the target instance is located, and select Manage. fg-dc-mongo(sharded)-3.2-13

4) In the left navigation bar, click Backup and Restore. fg-dc-mongo(sharded)-3.2-14

5) In the backup and restore list, click the three dots in the operation column of the row where the target backup file is located, and select Download.

6) In the pop-up Download Backup dialog box, click Copy to the right of the download address, and click OK.

7) Select the appropriate method to download the backup file. (For example, execute the wget command or paste the download address into the browser address bar and press Enter to download the backup file locally)

Restore Backup Data To The Current Instance

1) Log in to the MongoDB console. fg-dc-mongo(sharded)-3.2-15

2) On the replica set instance list page, click the ID of the target instance or click More in the Action column of the row where the target instance is located, and select Manage. fg-dc-mongo(sharded)-3.2-16

3) Click Backup and Restore in the left navigation bar. fg-dc-mongo(sharded)-3.2-17

4) On the Backup and Restore page, locate the backup set to be restored, and click More > Data Rollback.

5) In the Rollback Backup Instance window, click OK.